import request from '../utils/request'

export const findUserList= (current,size,userVO) => {
  return request({
    url: "/user/findUserPage",
    method: 'post',
    params: {
      current: current,
      size: size
    },
    data: userVO
  })
}

/**
 * 删除OSS中的图片文件
 */

export const deleteImgFile= (file) => {
  return request({
    url: "/deleteImgFile",
    method: 'post',
    params: {
      file
    }
  })
}

/**
 * 添加用户
 */

export const saveUser= (user) => {
  return request({
    url: "/user/addUser",
    method: 'post',
    data: user
  })
}


